const postcssPlugin = require('postcss-px-to-viewport');

module.exports = {
  style: {
    modules: {
        localIdentName: ''
      },
      css: {
        loaderOptions: { }
      },
      sass: {
        loaderOptions: { }
      },
    postcss: {
      plugins: [
        postcssPlugin({
          viewportWidth: 750,
          viewportHeight: 1334,
          unitPrecision: 3,
          viewportUnit: 'vw',
          selectorBlackList: ['.ignore', '.hairlines'],
          minPixelValue: 1,
          mediaQuery: false,
        }),
      ],
    },
    less: {
        loaderOptions: {
          lessOptions: {
            modifyVars: {},
            javascriptEnabled: true,
          },
        },
      },
  },
};